﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ExpressionEvaluation;

namespace TestJQGrid
{
    public class CommanUI:System.Web.UI.Page
    {

        public object isValidExp5(string exp)
        {
            object obj;
            ExpressionEval eval = new ExpressionEval(exp);
            try
            {
                obj = eval.Evaluate();
            }
            catch (Exception )
            {
                obj = "Invalid token";
            }

            if (obj == null)
                obj = "String";

            return obj;
        }

    }
}